package com.chungechunyemen.post.po;

import java.sql.Timestamp;

/**
 * Replies entity. @author MyEclipse Persistence Tools
 */

public class Replies implements java.io.Serializable {

	// Fields

	private Integer repliesId;
	private User user;
	private Topic topic;
	private Integer position;
	private String title;
	private String context;
	private String imageUrl;
	private String ip;
	private Timestamp datetime;
	private Integer iporun;
	private Integer state;

	// Constructors

	/** default constructor */
	public Replies() {
	}

	/** minimal constructor */
	public Replies(Integer position, Integer iporun, Integer state) {
		this.position = position;
		this.iporun = iporun;
		this.state = state;
	}

	/** full constructor */
	public Replies(User user, Topic topic, Integer position, String title,
			String context, String imageUrl, String ip, Timestamp datetime,
			Integer iporun, Integer state) {
		this.user = user;
		this.topic = topic;
		this.position = position;
		this.title = title;
		this.context = context;
		this.imageUrl = imageUrl;
		this.ip = ip;
		this.datetime = datetime;
		this.iporun = iporun;
		this.state = state;
	}

	// Property accessors

	public Integer getRepliesId() {
		return this.repliesId;
	}

	public void setRepliesId(Integer repliesId) {
		this.repliesId = repliesId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Topic getTopic() {
		return this.topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	public Integer getPosition() {
		return this.position;
	}

	public void setPosition(Integer position) {
		this.position = position;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContext() {
		return this.context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Timestamp getDatetime() {
		return this.datetime;
	}

	public void setDatetime(Timestamp datetime) {
		this.datetime = datetime;
	}

	public Integer getIporun() {
		return this.iporun;
	}

	public void setIporun(Integer iporun) {
		this.iporun = iporun;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

}